package com.itheima.service.impl;

import com.itheima.dao.BookDao;
import com.itheima.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author 刘全
 * @date 2021/9/11
 */
@Service("bookservice")
public class BookServiceImpl implements BookService {
    @Autowired
    private BookDao bookDao;
    @Value("${jdbc.password}")
    private String password;
    @Override
    public void save() {
        bookDao.save();
        System.out.println("bookservice save...."+password);
    }
}
